﻿/* $RCSFile: ADNMasterPage.cs $
 * Apache license v2 2011 by Christian Surieux
 * $Source: ?/ADNCRM.Core/UI/ADNMasterPage.cs $
 * $log$
 * Revision 6 2010/08/06 19:56:29  christian.surieux
 *   Added Log to All cs files
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;

namespace AddonNice.UI
{
    /// <summary>
    /// Base classe for all Addonice MasterPages
    /// </summary>
    public class ADNMasterPage : MasterPage
    {
        #region license

        /// Check for AddonNice license demo mode, take it from its associated page
        public virtual bool IsDemo
        {
            get
            {
                if ( Page is ADNPage )
                    return ((ADNPage)Page).IsDemo;
                return true;
            }
        }
        #endregion license
    }
}
